package com.piggy.system.api;

import com.piggy.common.core.constant.SecurityConstants;
import com.piggy.common.core.constant.ServiceNameConstants;
import com.piggy.system.api.bo.SysRoleAuthcodeEditBo;
import com.piggy.common.core.domain.R;
import com.piggy.system.api.factory.RemoteRoleAuthcodeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteRoleAuthcodeService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteRoleAuthcodeFallbackFactory.class)
public interface RemoteRoleAuthcodeService {

    @PostMapping("/roleAuthcode/updateBySceneIdAndBusinessId")
    R<Boolean> updateBySceneIdAndBusinessId(@RequestBody SysRoleAuthcodeEditBo bo, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
